#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <string.h>
using namespace std;
void inset(char a[]){
	int count = 0,s=0;
	for(int i = 0;a[i] != '\0';i++){
		if(a[i] == ' ') count++;
		s++;
	}
	int newp = s+count*2;
	while(s>=0&&newp>s){
		if(a[s] == ' '){
			a[newp--] = '0';
			a[newp--] = '2';
			a[newp] = '%';
		}else{
			a[newp] = a[s];
		}
		s--;newp--;
	}
} 
int main(void){
	char a[] = {"The stdwdq asdqwdi ohuihasd nhxcui"};
	inset(a);
	cout<<a;
} 
